package com.qianfeng.app;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;


@EnableAutoConfiguration
@ComponentScan("com.qianfeng")
@MapperScan("com.qianfeng.mapper") //扫描mapper.java和扫描controller.java、service.java不同

//默认情况下扫面的是当前包以及当前包的子包
//@SpringBootApplication(scanBasePackages= {"com.qianfeng.controller"}) //这是组合注解，可以替换上面的两个注解
public class SpringApplications {

	
	public static void main(String[] args) {
		SpringApplication.run(SpringApplications.class, args);
	}
}
